package org.origin.ferret.system.model.vo.dict;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 系统字典响应-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Accessors(chain = true)
@Schema(description = "系统字典响应-实体类")
public class SysDictVo {
    @Schema(description = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @Schema(description = "上级")
    private String parent_id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "键值")
    private String code;

    @Schema(description = "描述")
    private String label;

    @Schema(description = "样式")
    private String style;

    @Schema(description = "默认")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer defaults;

    @Schema(description = "状态")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer status;

    @Schema(description = "顺序")
    private Integer sort;

    @Schema(description = "状态描述")
    private String statusLabel;
}
